<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
/*float可使元素脱离文档流，不会覆盖文字,可以设置文字环绕图片的效果
脱离文档流的特点：
1.块元素将含有行内元素的特点(盒子默认被内容撑开,不再独占一行)
2.行内元素将含有块元素的特点(可以像块元素一样设置width和height)*/
        .box1{
            width: 200px;
            height: 200px;
            background-color: beige;
            float: left;
        }
        .box2{
            background-color: aquamarine;
            float: left;
        }
        .box3{
            background-color: aquamarine;
            float: left;
            height: 100px;
            width: 100px;
        }
    </style>
</head>
<body>
    <div class="box1"></div>
    <!-- <div class="box2">ejfkj</div> -->
    <!-- <p>kkkk</p> -->

    <span class="box3">fdfdff</span>
    <span>ffff</span>

    <!-- <p>浮动啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊奥东安粉粉粉粉粉粉粉粉粉粉粉粉粉粉粉粉粉粉粉粉粉粉粉粉粉粉粉粉粉粉粉赛奥分分分分分分分分发啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊奥</p> -->
</body>
</html>